package com.lt.bigevent.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author : litie
 * @date : 2023/11/9 14:34
 */
@Data
public class UserRegisterDto {

    /**
     * 用户名
     */
    @NotNull(message = "用户名不能为空")
    @Length(message = "用户名参数不合法", max = 16,min = 5)
    private String userName;

    /**
     * 密码
     */
    @NotNull(message = "密码不能为空")
    @Length(message = "密码参数不合法", max = 16,min = 5)
    private String password;
}
